<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%@ include file="/common/pre/header.jsp" %>
    <script src="${ctx}/statics/js/backend/backend.js"></script>
</head>
<body>

<!--End Header End-->
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
    <div class="m_content">
   
        <div class="m_right" id="content">
            <div class="mem_tit">
                <c:choose>
                    <c:when test="${empty cList.className}">
                        添加班级
                    </c:when>
                    <c:otherwise>
                        修改班级
                    </c:otherwise>
                </c:choose>
            </div>
            <br>
            <form action="/1and5Demo/classroom/updateClassroom" method="post" id="userAdd" onsubmit="return checkUser();">
                <table border="0" class="add_tab" style="width:930px;" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="135" align="right">班级名称</td>
                        <td colspan="3" style="font-family:'宋体';">
                            <input type="text" value="${cList.class.className} " class="add_ipt" name="loginName"/>
                           
                        </td>
                    </tr>
                   
                   
                        <tr>
                            <td width="135" align="right">所属机房</td>
                            <td>
                                <input type="text" value="${cList.computerroom.computerroomName} " class="add_ipt" name="password"/>
                            </td>
                        </tr>
                   
                    
                    
                    <tr>
                        <td width="135" align="right">教课老师</td>
                        <td>
                            <input type="text" value="${cList.teacher.teacherName} " class="add_ipt" name="mobile" id="mobile"/>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <c:choose>
                                <c:when test="${empty cList.className}">
                                    <input type="submit" value="添加" class="s_btn" onclick="addUser();">
                                </c:when>
                                <c:otherwise>
                                    <input type="submit" value="修改信息" class="s_btn"  onclick="addUser();">
                                </c:otherwise>
                            </c:choose>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
 
</div>
</body>
</html>


